def account_create():
    initial_account=0
    def atm(num, deposit=True):
        nonlocal initial_account
        if deposit:
            initial_account += num
            print(f"存款:+{num},账户余额:{initial_account}")
        else:
            if initial_account > num:
                initial_account -= num
                print(f"取款:-{num},账户余额:{initial_account}")
            else:
                print(f"余额不足，账户余额{initial_account}")
                return
    return atm
fn1 = account_create()
fn1(400)
fn1(300)
fn1(200,False)
fn2 = account_create()
fn2(5000,False)